﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace CPPProject.Migrations
{
    public partial class deletetABLE : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.DropTable(
            //    name: "CPPContract");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.CreateTable(
            //    name: "CPPContract",
            //    columns: table => new
            //    {
            //        Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
            //        Address = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
            //        BizType = table.Column<string>(type: "nvarchar(2)", maxLength: 2, nullable: false),
            //        CompanyId = table.Column<long>(type: "bigint", nullable: false),
            //        ContractNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
            //        CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        CustomerId = table.Column<long>(type: "bigint", nullable: false),
            //        Days = table.Column<int>(type: "int", nullable: false),
            //        EndDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
            //        LastModifierUserId = table.Column<long>(type: "bigint", nullable: true),
            //        PaymentMtd = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
            //        PaymentPeriod = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
            //        ProjectName = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
            //        ReconciliationDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        Remark = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
            //        StartDate = table.Column<DateTime>(type: "datetime2", nullable: false),
            //        Status = table.Column<string>(type: "nvarchar(10)", maxLength: 10, nullable: true),
            //        TenantId = table.Column<int>(type: "int", nullable: false),
            //        WarningDays = table.Column<int>(type: "int", nullable: false)
            //    },
            //    constraints: table =>
            //    {
            //        table.PrimaryKey("PK_CPPContract", x => x.Id);
            //        table.ForeignKey(
            //            name: "FK_CPPContract_CPPCompany_CompanyId",
            //            column: x => x.CompanyId,
            //            principalTable: "CPPCompany",
            //            principalColumn: "Id",
            //            onDelete: ReferentialAction.Cascade);
            //    });

            //migrationBuilder.CreateIndex(
            //    name: "IX_CPPContract_CompanyId",
            //    table: "CPPContract",
            //    column: "CompanyId");
        }
    }
}
